<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <sapn th:each="id,idStat:${list}">
        <span th:text="${idStat.count}"></span>
        <span th:text="${id}"></span></br>
    </sapn>
</body>
</html>